package com.gxa.dao;


import com.gxa.pojo.Userinfo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserinfoMapper {
@Select("select * from userinfo ")
   // public int selectUserinfo(Userinfo userinfo);
    public List<Userinfo> selectUserinfo();
@Delete("delete  from userinfo where userinfo_name=#{userinfo_name}")
    public int deleteUserinfo(String userinfo_name );


@Insert("insert into userinfo values (#{userinfo_name}, #{userinfo_number}, #{userinfo_sex},#{userinfo_card}, #{userinfo_postbox}, #{userinfo_operatename}, #{userinfo_operatetime}, #{userinfo_operate})")
    public int insertUserinfo(Userinfo userinfo);
}
